#ifndef REQUIREMENTSGROUP_H_
#define REQUIREMENTSGROUP_H_
#include <QObject>

class RequirementsGroup : public QObject
{
	Q_OBJECT
	
public:
	RequirementsGroup(int numberRequired = 8,
			QObject *parent = 0);
	virtual ~RequirementsGroup();
	
	const static int MAX = 13;

    int completionPercentage(); // 0 - 100
    int numberRequired();
    
    int requirement(int number);
    
	int req1();
	int req2();
	int req3();
	int req4();
	int req5();
	int req6();
	int req7();
	int req8();
	int req9();
	int req10();
	int req11();
	int req12();
	int req13();

public slots:

    void setReq(int number, int percent);
    
	void setReq1(int percent);
	void setReq2(int percent);
	void setReq3(int percent);
	void setReq4(int percent);
	void setReq5(int percent);
	void setReq6(int percent);
	void setReq7(int percent);
	void setReq8(int percent);
	void setReq9(int percent);
	void setReq10(int percent);
	void setReq11(int percent);
	void setReq12(int percent);
	void setReq13(int percent);

	void setNumberRequired(int i_required);
	
private:
	int m_numberRequired;
	
	int m_req1;
	int m_req2;
	int m_req3;
	int m_req4;
	int m_req5;
	int m_req6;
	int m_req7;
	int m_req8;
	int m_req9;
	int m_req10;
	int m_req11;
	int m_req12;
	int m_req13;
	
};

#endif /*REQUIREMENTSGROUP_H_*/
